<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
		"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
								xmlns:ui="http://java.sun.com/jsf/facelets"
								xmlns:h="http://java.sun.com/jsf/html"
								xmlns:f="http://java.sun.com/jsf/core"
								xmlns:a4j="http://richfaces.org/a4j"
								xmlns:rich="http://richfaces.org/rich"
								xmlns:s="http://jboss.com/products/seam/taglib"
								template="layout/template.xhtml">

	<ui:define name="body">

		<h:form>
			<div class="name">
				Study ACC:
			</div>
			<div class="value">
				<h:outputText value="#{studyBean.study.acc}"/>
			</div>

			<div class="name">
				Title:
			</div>
			<div class="value">
				<h:outputText value="#{studyBean.study.title}"/>
			</div>

			<div class="name">
				Description:
			</div>
			<div class="value">
				<h:outputText value="#{studyBean.study.description}"/>
			</div>

			<div class="name">
				Release Date:
			</div>
			<div class="value">
				<h:outputText value="#{studyBean.study.releaseDate}"/>
			</div>


			<div class="name">
				Design:
			</div>
			<div class="value">
				<h:outputText value="#{studyBean.study.design.value}"/>
			</div>

			<div class="name">
				Species:
			</div>
			<br/>
			<rich:dataList var="value" value="#{studyBean.organisms}">
				<h:outputText value="#{value.value}"/><br/>
			</rich:dataList>

			<div class="name">
				Factors:
			</div>
			<br/>
			<rich:dataList var="property" value="#{studyBean.factors}">
				<h:outputText value="#{property.value}"/><br/>

				<rich:dataList var="value" value="#{property.propertyValues}">
					<h:outputText value="#{value.value}"/><br/>
				</rich:dataList>

			</rich:dataList>

			<div class="name">
				Assays:
			</div>
			<br/>
			<rich:dataList value="#{studyBean.assayTypes}" var="assayType">
				<h:outputText value="#{assayType.name}"/><br/>

				<rich:dataList var="assay" value="#{studyBean.getAssaysByType(assayType)}">
					<h:outputText value="#{assay.endPoint.name}"/><br/>
				</rich:dataList>

			</rich:dataList>

		</h:form>

	</ui:define>

</ui:composition>